#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet
# at http://www.illumos.org/license/CDDL.
#

#
# Copyright 2011, Richard Lowe
# Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
# Copyright 2017 Peter Tribble
#

include		$(SRC)/Makefile.master

MANSECT= 	3tsol

MANFILES=	blcompare.3tsol		\
	 	blminmax.3tsol		\
	 	bltocolor.3tsol		\
	 	bltos.3tsol		\
	 	btohex.3tsol		\
	 	getdevicerange.3tsol	\
	 	getlabel.3tsol		\
	 	getpathbylabel.3tsol	\
	 	getplabel.3tsol		\
	 	getuserrange.3tsol	\
	 	getzonelabelbyid.3tsol	\
	 	getzonerootbyid.3tsol	\
	 	hextob.3tsol		\
	 	label_to_str.3tsol	\
	 	m_label.3tsol		\
	 	sbltos.3tsol		\
	 	setflabel.3tsol		\
	 	stobl.3tsol		\
	 	str_to_label.3tsol	\
	 	tsol_getrhtype.3tsol

MANLINKS=	bcleartoh.3tsol			\
		bcleartoh_r.3tsol		\
		bcleartos.3tsol			\
		bldominates.3tsol		\
		blequal.3tsol			\
		blinrange.3tsol			\
		blmaximum.3tsol			\
		blminimum.3tsol			\
		blstrictdom.3tsol		\
		bltocolor_r.3tsol		\
		bsltoh.3tsol			\
		bsltoh_r.3tsol			\
		bsltos.3tsol			\
	 	fgetlabel.3tsol			\
		getzoneidbylabel.3tsol		\
		getzonelabelbyname.3tsol	\
		getzonerootbylabel.3tsol	\
		getzonerootbyname.3tsol		\
		h_alloc.3tsol			\
		h_free.3tsol			\
		htobclear.3tsol			\
		htobsl.3tsol			\
		m_label_alloc.3tsol		\
		m_label_dup.3tsol		\
		m_label_free.3tsol		\
		sbcleartos.3tsol		\
		sbsltos.3tsol			\
		stobclear.3tsol			\
		stobsl.3tsol

bldominates.3tsol		:= LINKSRC = blcompare.3tsol
blequal.3tsol			:= LINKSRC = blcompare.3tsol
blinrange.3tsol			:= LINKSRC = blcompare.3tsol
blstrictdom.3tsol		:= LINKSRC = blcompare.3tsol

blmaximum.3tsol			:= LINKSRC = blminmax.3tsol
blminimum.3tsol			:= LINKSRC = blminmax.3tsol

bltocolor_r.3tsol		:= LINKSRC = bltocolor.3tsol

bcleartos.3tsol			:= LINKSRC = bltos.3tsol
bsltos.3tsol			:= LINKSRC = bltos.3tsol

bcleartoh.3tsol			:= LINKSRC = btohex.3tsol
bcleartoh_r.3tsol		:= LINKSRC = btohex.3tsol
bsltoh.3tsol			:= LINKSRC = btohex.3tsol
bsltoh_r.3tsol			:= LINKSRC = btohex.3tsol
h_alloc.3tsol			:= LINKSRC = btohex.3tsol
h_free.3tsol			:= LINKSRC = btohex.3tsol

fgetlabel.3tsol			:= LINKSRC = getlabel.3tsol

getzoneidbylabel.3tsol		:= LINKSRC = getzonelabelbyid.3tsol
getzonelabelbyname.3tsol	:= LINKSRC = getzonelabelbyid.3tsol

getzonerootbylabel.3tsol	:= LINKSRC = getzonerootbyid.3tsol
getzonerootbyname.3tsol		:= LINKSRC = getzonerootbyid.3tsol

htobclear.3tsol			:= LINKSRC = hextob.3tsol
htobsl.3tsol			:= LINKSRC = hextob.3tsol

m_label_alloc.3tsol		:= LINKSRC = m_label.3tsol
m_label_dup.3tsol		:= LINKSRC = m_label.3tsol
m_label_free.3tsol		:= LINKSRC = m_label.3tsol

sbcleartos.3tsol		:= LINKSRC = sbltos.3tsol
sbsltos.3tsol			:= LINKSRC = sbltos.3tsol

stobclear.3tsol			:= LINKSRC = stobl.3tsol
stobsl.3tsol			:= LINKSRC = stobl.3tsol

.KEEP_STATE:

include		$(SRC)/man/Makefile.man

install:	installman .WAIT $(ROOTMANLINKS)
